package cn.hfatec.shms.tag;

import org.sitemesh.SiteMeshContext;
import org.sitemesh.content.ContentProperty;
import org.sitemesh.content.tagrules.TagRuleBundle;
import org.sitemesh.content.tagrules.html.ExportTagToContentRule;
import org.sitemesh.tagprocessor.State;

/**
 * @author: panwb
 * <p/>
 * Date: 2016/6/12
 * Time: 9:45
 */
public class MyNavTagRuleBundle implements TagRuleBundle{

    @Override
    public void install(State state, ContentProperty contentProperty, SiteMeshContext siteMeshContext) {
        state.addRule("myNav", new ExportTagToContentRule(siteMeshContext, contentProperty.getChild("myNav"), false));
    }

    @Override
    public void cleanUp(State state, ContentProperty contentProperty, SiteMeshContext siteMeshContext) {

    }
}
